<div class="row">
<div class="col-md-12">
    {% include 'Xueyuan_Searchfrom.html' %}
</div>
    <div class="col-md-12">
        <table class="table table-hover border ">
            <thead>
            <tr>
                <th scope="col">学员姓名</th>
                <th scope="col">学员学号</th>
                <th scope="col">报读层次</th>
                <th scope="col">报读专业</th>
                <th scope="col">报名时间</th>
                <th scope="col">转化老师</th>
                <th scope="col">协议状态</th>
                <th scope="col">操作</th>
            </tr>
            </thead>
            <tbody>

            {% for banji_xueyuan in page_obj %}
                <tr>
                    <td>{{ banji_xueyuan.kehu.username }}</td>
                    <td>{{ banji_xueyuan.xueyuan_kaoshenghao }}</td>
                    <td>{{ banji_xueyuan.ziliao.zycc }}</td>
                    <td>{{ banji_xueyuan.ziliao.zymc }}</td>
                    <td>
                        {% if banji_xueyuan.baomingtime %}
                            {{ banji_xueyuan.baomingtime }}
                        {% else %}
                            未知
                        {% endif %}
                    </td>
                    <td>
                        {{ banji_xueyuan.chengjiao_laoshi.last_name }}{{ banji_xueyuan.chengjiao_laoshi.first_name }}</td>
                    <td>未签订</td>
                    <td><a href="{% url 'Xueyuan_detail' banji_xueyuan.id %}" class="btn btn-primary">详情</a> <a href=""
                                                                                                                class="btn btn-primary">删除</a>
                    </td>
                </tr>
            {% endfor %}
            </tbody>

        </table>
    </div>
    <div class="col-md-12">
        <div class="row">
            <!-- 分页导航 -->
            <div aria-label="Page navigation example">
                <ul class="pagination pagination-lg">
                    {% if page_obj.has_previous %}
                        <li class="page-item"><a href="?page=1" class="page-link">&laquo; 第一页</a></li>
                        <li class="page-item"><a href="?page={{ page_obj.previous_page_number }}"
                                                 class="page-link">上一页</a></li>
                    {% endif %}

                    <li class="page-item">
                        <span class="page-link"> 页码：{{ page_obj.number }} of {{ page_obj.paginator.num_pages }}.</span>
                    </li>

                    {% if page_obj.has_next %}
                        <li class="page-item"><a href="?page={{ page_obj.next_page_number }}" class="page-link">下一页</a>
                        </li>
                        <li class="page-item"><a href="?page={{ page_obj.paginator.num_pages }}" class="page-link">最后一页
                            &raquo;</a></li>
                    {% endif %}
                </ul>
            </div>
            <!-- 分页导航 -->
        </div>
    </div>
</div>